import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import index from '@/pages/index.vue'
import gogo from '@/pages/gogo.vue'
import city from '@/pages/city.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path:'/',
      name:'index',
      redirect:'index'
    },{
      path:'/index',
      name:'index',
      component:index
    },{
      path:'/gogo/:id',
      name:'gogo',
      component:gogo
    },{
      path:'/city',
      name:'city',
      component:city
    }
  ]
})
